//
//  ThemeManage.m
//  夜间模式9-27
//
//  Created by dllo on 15/9/27.
//  Copyright (c) 2015年 直到世界的尽头. All rights reserved.
//

#import "ThemeManage.h"
static ThemeManage *manage;
@implementation ThemeManage

#pragma mark - 单例的初始化
+(ThemeManage *)shareThemeManage
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manage = [[ThemeManage alloc] init];
    });
    return manage;
}

#pragma mark 重写isNight的set方法
-(void)setIsNight:(BOOL)isNight
{
    _isNight = isNight;
    
    if (self.isNight) {
        self.textColorGray = [UIColor darkGrayColor];
        //self.bgColor = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//黑色
         self.bgColor = [UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1]; //浅灰
       // self.textColor = [UIColor blackColor];
        self.textColor = [UIColor whiteColor];
        //self.navBarColor = [UIColor colorWithRed:0.92 green:0.25 blue:0.24 alpha:1];//红色
        self.navBarColor = [UIColor colorWithRed:0.6 green:0.16 blue:0.16 alpha:1];//黑红
        //self.color2 = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];//浅浅灰
        self.color2 = [UIColor blackColor];
        self.color1 = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//浅灰
       // self.color1 = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//黑色
    }
    else{
        self.textColorGray = [UIColor darkGrayColor];
       // self.bgColor = [UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1]; //浅灰
        self.bgColor = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//黑色
        //self.textColor = [UIColor whiteColor];
        self.textColor = [UIColor blackColor];
        //self.navBarColor = [UIColor colorWithRed:0.6 green:0.16 blue:0.16 alpha:1];//黑红
        self.navBarColor = [UIColor colorWithRed:0.92 green:0.25 blue:0.24 alpha:1];//红色
       // self.color2 = [UIColor blackColor];
        self.color2 = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];//浅浅灰
        //self.color1 = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//浅灰
        self.color1 = [UIColor colorWithRed:0.96 green:0.96 blue:0.96 alpha:1];//黑色
    }
}

@end
